<template>
  <div>
      <input type="text" v-model="mobile">
      <input type="text" v-model="pwd">
      <button @click="login">立即登录</button>
 </div>
</template>

<script>
import { login } from '@/utils/api/api'
export default {
  name: '',
  data() { 
    return {
        mobile: '',
        pwd: ''
    }
  },
  created() {

  },
  methods:{
      login() {
          login({
              mobile: this.mobile,
              pwd: this.pwd
          }).then(res => {
              console.log(res);
          })
      }
  },
 }
</script>

<style scoped>
</style>